<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta charset="UTF-8">
<title>编辑用户</title>

<script type="text/javascript">
    function updateUser() {
        var form = document.forms[0];
        form.action = "<%=basePath%>user/updateUser";
		form.method = "post";
		form.submit();
	}
</script>

<h1>添加用户</h1>
<form action="" name="userForm">
	<input type="hidden" name="uid" value="${user.uid }" /> 
	帐号：<input	type="text" name="username" value="${user.uname }" /> 
	密码：<input	type="text" name="passwd" value="${user.passwd}" />
	真实名字：<input	type="text" name="realname" value="${user.realname}" />
	地址：<input	type="text" name="addr" value="${user.addr}" />
	邮箱：<input	type="text" name="email" value="${user.email}" />
	电话：<input	type="text" name="phonw" value="${user.phone}" />
	 <button type="button" class="btn btn-primary" onclick="updateUser()">保存修改</button>
</form>

</head>
<body>




</body>
</html>